<template>
    <div v-if="kk==1">
        <Scenery :sceneryId="1"></Scenery>
    </div>
    <div v-if="kk==2">
        <Scenery :sceneryId="2"></Scenery>
    </div>
</template>
<script type="text/javascript">
    import Msg from '@/msg.js'
    import Scenery from './Scenery.vue'
    export default {
        data(){
            return{
                kk:0
            }
        },
        mounted(){
            var obj = this
            Msg.on('val',(m)=>{
                obj.kk=m;
            })
        },
        components:{
            Scenery
        }
    }
</script>
